package org.eenie.commonlib.ui.bento.components.course

import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.yelp.android.bento.core.ComponentViewHolder
import com.yelp.android.bento.utils.inflate
import org.eenie.commonlib.R

class CourseItemHolder : ComponentViewHolder<Any?, String> (){

    lateinit var mTvName: TextView


    override fun inflate(parent: ViewGroup): View {
        val view: View = parent.inflate(R.layout.holder_item_course)
        mTvName = view.findViewById(R.id.tv_course_name)
        return view
    }




    override fun bind(presenter: Any?, element: String) {
        mTvName.text = "this is $element"
    }


}